#ifndef _Q_OPERATOR_H
#define _Q_OPERATOR_H

#include "qe_vars.h"



#define MAX_OP_LEN 8

enum q_operatortype {OPTYPE_UNARY = 0, OPTYPEBINARY};

struct q_operator
{
	enum q_operatortype type;
	struct q_operator* next;
	union
	{
		struct q_variable (*unary)(struct q_variable*);
		struct q_variable (*binary)(struct q_variable*, struct q_variable*);
	};
};


struct q_variable q_op_negate(struct q_variable* arg);

#endif
